package com.longteng.diamond.dao;

import com.longteng.diamond.domain.InterfaceMock;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created by Administrator
 * DATE : 2018/6/28
 * TIME : 20:23
 * PROJECT : java-lesson
 * PACKAGE : com.longteng.lesson
 *
 * @author <a href="mailto:taki@qq.com">Administrator</a>
 */
@Mapper
public interface InterfaceMockMapper {
    /**
     * 获取mock接口
     * @param interfaceMock
     * @return List<InterfaceMock>
    * */
    public List<InterfaceMock> getInterfaceMock(InterfaceMock interfaceMock);

    /**
     *  查询所有行
     * @param interfaceMock
     * @return long
     */
    public Long queryAllRow(InterfaceMock interfaceMock);

    /**
     * 根据id获取mock接口
     * @param interfaceId
     * @return InterfaceMock
     */
    public InterfaceMock findInterfaceMockById(Integer interfaceId);
    /**
     * 新增mock接口
     * @param interfaceMock
     * @return
     */
    public void addInterfaceMock(InterfaceMock interfaceMock);

    /**
     * 修改mock接口
     * @param interfaceMock
     * @return
     */
    public void updateInterfaceMock(InterfaceMock interfaceMock);

    /**
     * 删除mock接口
     * @param interfaceId
     * @return
     */
    public void deleteInterfaceMockById(Integer interfaceId);
    /**
     * 获取mock接口是否存在
     * @param interfaceMock
     * @return
     */
    public InterfaceMock getInterfaceMockMatch(InterfaceMock interfaceMock);
}
